LGF_TimeToString (FC / 3.1.0)

Overview

Author: Siemens Digital Industry

Short description

This function converts a variable of the system data type Time into a variable of the data type String.

Block Interface

LGF_TimeToString (FC)
Time  timeValue Ret_Val  String
    
Char  separator stringDay  String
    
   stringHour  String
    
   stringMinute  String
    
   stringSecond  String
    
   stringMilliSecond  String
    
   

Input parameter

IdentifierData type Description
timeValueTime Time value to convert
Example: `T#1D_3H_45M_6S`
separatorChar Separator between the components of the output string

Output parameter

IdentifierData type Description
Ret_ValString Converted time as string.
Example: `1D3H45M6S0MS`
stringDayString Converted day as string
stringHourString Converted hour as string
stringMinuteString Converted minute as string
stringSecondString Converted second as string
stringMilliSecondString Converted millisecond as string

Change log

Version & DateChange description
1.0.0Siemens Industry Online Support
03.07.2018First released version
1.0.1Siemens Industry Online Support
17.08.2018Upgrade: TIA V15 Update 2
1.0.2Siemens Industry Online Support
23.11.2018Upgrade: TIA V15.1
1.0.3Simatic Systems Support
02.07.2019Standard header and block parameters update, status parameter added
1.0.5Simatic Systems Support
09.07.2019Further improvements minimization and commends added
1.0.6Simatic Systems Support
30.07.2019Add ENO handling
3.0.0Simatic Systems Support
23.04.2020Set version to V3.0.0
Harmonize the version of the whole library
3.0.1Simatic Systems Support
23.02.2021Insert documentation
3.1.0Simatic Systems Support
17.07.2025Implemented separator input and functionality